package com.ruoyi.activiti.controller;

import com.ruoyi.activiti.common.ResultObject;
import com.ruoyi.activiti.domain.ActRuTask;
import com.ruoyi.activiti.service.impl.AuditServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/activiti")
public class AuditController {

    @Autowired
    private AuditServiceImpl auditService;

 @PostMapping("/list")
public ResultObject auditList(@RequestBody ActRuTask actRuTask){
     ResultObject resultObject = auditService.auditList(actRuTask);
     return resultObject;
 }
}
